﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;

namespace Commander.DataLayer {
  public class DatabaseSchemaBuilder {

    //public ISessionFactory SessionFactory { get; private set; }

    public ISessionFactory BuildSchema() {
      return NHibernateSessionHelper.CreateNewDatabaseSessionFactory();
    }

    public ISessionFactory BuildSchema(string file) {

      return NHibernateSessionHelper.CreateNewDatabaseSessionFactoryWithDBFile(file);
    }
  }
}
